/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package core;

/**
 *
 * @author Sakis Vtdk
 */
public class SqlScriptGeneratorFactory
{
	private SqlScriptGeneratorFactory()
	{

	}
	
	/**
	 * Implements the factory pattern on sqlScriptGenerator
	 * 
	 * @param typeOfGenerator The type of generator to be returned. Currently
	 * only 'mysql' is supported
	 * 
	 * @return The appropriate {@link SqlScriptGenerator} instance.
	 */
	public static SqlScriptGenerator getSqlScriptGenerator(String typeOfGenerator)
	{
		SqlScriptGenerator sqlScriptGenerator = null;

		if(typeOfGenerator.equalsIgnoreCase("mysql"))
		{
			sqlScriptGenerator = new MysqlScriptGenerator();
		}
		
		return sqlScriptGenerator;
	}
}
